import type { AppRouteModule } from '/@/router/types';
import { t } from '/@/hooks/web/useI18n';
import { getParentLayout, LAYOUT } from '/@/router/constant';
const bbs: AppRouteModule = {
  path: '/bbs',
  name: 'bbs',
  component: LAYOUT,
  redirect: '/bbs/post',
  meta: {
    orderNo: 2000,
    icon: 'ion:settings-outline',
    title: t('routes.demo.bbs.moduleName'),
  },

  children: [
    {
      path: 'post',
      name: 'PostManagement',
      meta: {
        title: t('routes.demo.bbs.post'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/bbs/post/index.vue'),
    },
    {
      path: 'tag',
      name: 'TagManagement',
      meta: {
        title: t('routes.demo.bbs.tag'),
        ignoreKeepAlive: true,
      },
      component: () => import('/@/views/demo/bbs/tag/index.vue'),
    },
    {
      path: 'category',
      name: 'CategoryManagement',
      meta: {
        title: t('routes.demo.bbs.category'),
        ignoreKeepAlive: true,
      },
      component: () => import('/@/views/demo/bbs/category/index.vue'),
    },
    {
      path: 'sign',
      name: 'SignManager',
      meta: {
        title: t('routes.demo.bbs.sign'),
        ignoreKeepAlive: true,
      },
      component: getParentLayout('bbs'),
      children: [
        {
          path: 'signAttendance',
          name: 'SignAttendanceManagement',
          meta: {
            title: t('routes.demo.bbs.signAttendance'),
            ignoreKeepAlive: true,
          },
          component: () => import('/@/views/demo/bbs/signAttendance/index.vue'),
        },
        {
          path: 'signPoint',
          name: 'SignPointManagement',
          meta: {
            title: t('routes.demo.bbs.signPoint'),
            ignoreKeepAlive: true,
          },
          component: () => import('/@/views/demo/bbs/signPoint/index.vue'),
        },
        {
          path: 'signEvent',
          name: 'SignEventManagement',
          meta: {
            title: t('routes.demo.bbs.signEvent'),
            ignoreKeepAlive: true,
          },
          component: () => import('/@/views/demo/bbs/signEvent/index.vue'),
        },
    
      ],
    },
    
    {
      path: 'activeUser',
      name: 'ActiveUserManagement',
      meta: {
        title: t('routes.demo.bbs.activeUser'),
        ignoreKeepAlive: true,
      },
      component: () => import('/@/views/demo/bbs/active-user/index.vue'),
    },
    {
      path: 'personInforamtion',
      name: 'PersonInforamtionManagement',
      meta: {
        title: t('routes.demo.bbs.personInforamtion'),
        ignoreKeepAlive: true,
      },
      component: () => import('/@/views/demo/bbs/person-information/index.vue'),
    },
  ],
};

export default bbs;
